## Summary
The files 0_Main.R (in /code_R) and 0_Main.do (in /code_Stata) run all scripts necessary to replicate the tables and figures in "Backsliding by Surprise: The Rise of Chavismo."


## Required software and packages, R

```
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.5.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] magrittr_2.0.3         RColorBrewer_1.1-3     qdapTools_1.3.5        qdapRegex_0.7.5        qdapDictionaries_1.0.7
 [6] doParallel_1.0.17      iterators_1.0.14       foreach_1.5.2          ldatuning_1.0.2        tidytext_0.3.3        
[11] topicmodels_0.2-12     tidyr_1.2.0            ggplot2_3.3.6          lubridate_1.8.0        quanteda_3.2.1        
[16] readxl_1.4.0           pbapply_1.5-0          text2vec_0.6.1         labelProp_0.1.1        dplyr_1.0.9           

loaded via a namespace (and not attached):
 [1] bitops_1.0-7           SnowballC_0.7.0        tools_4.2.0            utf8_1.2.2             R6_2.5.1              
 [6] DBI_1.1.2              colorspace_2.0-3       withr_2.5.0            gridExtra_2.3          tidyselect_1.1.2      
[11] compiler_4.2.0         chron_2.3-57           parallelDist_0.2.6     cli_3.3.0              lgr_0.4.3             
[16] xml2_1.3.3             NLP_0.2-1              rsparse_0.5.0          labeling_0.4.2         slam_0.1-50           
[21] scales_1.2.0           tm_0.7-8               stringr_1.4.0          digest_0.6.29          RhpcBLASctl_0.21-247.1
[26] pkgconfig_2.0.3        rlang_1.0.2            rstudioapi_0.13        farver_2.1.0           generics_0.1.2        
[31] zip_2.2.0              tokenizers_0.2.1       RCurl_1.98-1.7         modeltools_0.2-23      Matrix_1.4-1          
[36] Rcpp_1.0.8.3           munsell_0.5.0          fansi_1.0.3            lifecycle_1.0.1        stringi_1.7.6         
[41] plyr_1.8.7             grid_4.2.0             gender_0.6.0           mlapi_0.1.1            crayon_1.5.1          
[46] lattice_0.20-45        pillar_1.7.0           igraph_1.3.4           reshape2_1.4.4         codetools_0.2-18      
[51] stopwords_2.3          stats4_4.2.0           fastmatch_1.1-3        XML_3.99-0.10          glue_1.6.2            
[56] data.table_1.14.2      RcppParallel_5.1.5     float_0.3-0            vctrs_0.4.1            cellranger_1.1.0      
[61] gtable_0.3.0           purrr_0.3.4            assertthat_0.2.1       openxlsx_4.2.5         janeaustenr_0.1.5     
[66] tibble_3.1.7           ellipsis_0.3.2    
```


## labelProp

* [`labelProp`](https://github.com/prodriguezsosa/labelProp) is the R software associated with the dictionary expansion portion of this paper. To install the latest development version use:

```r
devtools::install_github("prodriguezsosa/labelProp")
```

